package com.yuou.service;

import java.util.List;
import java.util.Set;
import java.util.Map;

import com.yuou.common.base.CoreService;
import com.yuou.common.utils.Tree;
import com.yuou.model.Menu;


public interface MenuService extends CoreService<Menu> {
	Tree<Menu> getSysMenuTree(Integer id);

    List<Tree<Menu>> listMenuTree(Integer id);
	
	List<Menu> selectAll(Map<String, Object> map);
	
    Set<String> listPerms(Integer userId);
    
    int deleteByPrimaryKey(Integer id);
    
    int selectCountByid(Integer id);
    
    Tree<Menu> getTree();
	
	Tree<Menu> getTree(Integer id);
    
    Menu selectById(Integer id);
    
    String selectNameByid(Integer parentId);
    
    int insertMenu(Menu menu);
    
    int updateByPrimaryKey(Menu menu);
}
